package com.scada.hessian.client.impl;

import java.util.List;
import java.util.Map;

import com.scada.inf.PermissionVisitor;
import com.scada.model.bean.Permission;
import com.scada.model.result.PageInfo;
import com.scada.model.result.ResponseBean;
import com.scada.wechat.hessian.client.BaseClient;
import com.scada.wechat.hessian.client.annotation.HessianNamespace;



@HessianNamespace("permissionVisitorService")
public class PermissionVisitorClient extends BaseClient<PermissionVisitor> implements PermissionVisitor{

	public PageInfo<Permission> selectByPrimaryKey(PageInfo<Permission> pageInfo) {
		
		return getVistor().selectByPrimaryKey(pageInfo);
	}

	public Permission selectById(Map<String, Object> map) {
		
		return getVistor().selectById(map);
	}

	public Boolean validateIndex(Permission permission) {
		
		return getVistor().validateIndex(permission);
	}

	public ResponseBean deleteByPrimaryKey(Map<String, Object> map) {
		
		return getVistor().deleteByPrimaryKey(map);
	}

	public ResponseBean insertSelective(Permission permission) {
		
		return getVistor().insertSelective(permission);
	}

	public ResponseBean updateByPrimaryKeySelective(Permission permission) {
		
		return getVistor().updateByPrimaryKeySelective(permission);
	}

	public List<Permission> getPermissionsName(Integer roleId) {
		
		return getVistor().getPermissionsName(roleId);
	}

	public List<Permission> getPermissionsCode(Integer roleId) {
		
		return getVistor().getPermissionsCode(roleId);
	}

	
}
